package com.fanjia.taobao.user.service.impl;

import com.fanjia.taobao.user.dao.UserRoleDao;
import com.fanjia.taobao.user.entity.UserRole;
import com.fanjia.taobao.user.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户角色表(UserRole)表服务实现类
 *
 * @author fanjia
 * @since 2021-04-19 17:20:23
 */
@Service("userRoleService")
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    private UserRoleDao userRoleDao;


    @Override
    public void userAssignedRoles(int userId, List<Integer> roleIds) {
        userRoleDao.userAssignedRoles(userId,roleIds);
    }
}